﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Wix.Aura.Common.CustomTypes;

namespace Wix.Aura.Common {
	public class FileTypeMask : IXmlSerializable {
		private FileTypeMask() { }

		public FileTypeMask(HexType mask, int offset, HexType value) {
			Mask = mask;
			Offset = offset;
			Value = value;
		}

		public HexType Mask { get; set; }
		public int Offset { get; set; }
		public HexType Value { get; set; }


		public System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("FileTypeMask");
			writer.WriteAttribute("Mask", Mask);
			writer.WriteAttribute("Offset", Offset);
			writer.WriteAttribute("Value", Value);
			writer.WriteEndElement();
		}
	}
}
